/**
 * Created by zhouwenguang on 2015/11/19.
 */
var express=require("express");
var routes=require("./index");
var app=express();

app.set("view engine","ejs");
app.use(express.static('public'));

app.get("/",routes.index);
app.get("/form",routes.form);
app.post("/form",routes.create);

app.listen(1337,127.0.0.1,function(){
    console.log("开始监听......")
})